import Vue from "vue";
import App from "./App.vue";
import router from "./router";

Vue.config.productionTip = false;
import { registerMicroApps, start } from "qiankun";
const apps = [
  {
    name: "vueApp",
    entry: "//localhost:10000", // 默认会加载这个html解析里面的js动态执行,子应用必须跨域
    container: "#vue",
    activeRule: "/vue"
  },
  {
    name: "reactApp",
    entry: "//localhost:20000",
    container: "#react",
    activeRule: "/react"
  }
];

registerMicroApps(apps);
start({
  prefetch: false //取消加载
});

new Vue({
  router,
  render: h => h(App)
}).$mount("#app");
